{include file="public:header" /}
<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <a class="add fb" href="{:url('add')}" data-title="添加图文" data-id="add" data-width="500" data-height="450"><em>添加图文</em></a>
        <a href="{:url('index')}" class="on"><em>图文列表</em></a>
    </div>
</div>
<!--文章列表-->
<div class="pad_lr_10" >
    <form name="searchform" action="{:url('index')}"  method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                状态:
                <select name="status">
                <option value="0" {eq name="search['is_send']" value="0"}selected="selected"{/eq}>未发送</option>
                <option value="1" {eq name="search['is_send']" value="1"}selected="selected"{/eq}>已发送</option>
                </select>
                &nbsp;&nbsp;关键词 :
                <input name="keyword" type="text" class="input-text" size="25" value="{$search.keyword}" />
                <input type="submit" name="search" class="btn" value="搜索" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>
    <div class="J_tablelist table_list" data-acturi="{:url('ajaxEdit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th>序号</th>
                <th align="left">标题</th>
                <th width=120>发布时间</th>
                <th width=120>更新时间</th>
                <th width=120>发布人</th>
                <th align="60"><span data-tdtype="order_by" data-field="ordid">排序</span></th>
                <th width="40">状态</th>
                <th width="80">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="val"}
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="left">{$val.title}</td>
                <td align="center">{$val.create_time|date='Y-m-d H:i:s',###}</td>
                <td align="center">{$val.update_time|date='Y-m-d H:i:s',###}</td>
                <td align="center">{$val.author}</td>
                <td align="center"><span data-tdtype="edit" data-field="ordid" data-id="{$val.id}" class="tdedit">{$val.ordid}</span></td>
                <td align="center">{if condition="$val['is_send'] eq 0"}<span style="color:#ff0000;">待发送</span>{else /}已发送{/if}</td>
                <td align="center">
                    <a href="{:url('edit',['id'=>$val['id']])}">编辑</a> |
                    <a href="javascript:;" class="J_confirmurl" data-acttype="ajax" data-uri="{:url('delete',['id'=>$val['id']])}" data-msg="确定要删除么？">删除</a>
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
    	<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('delete')}" data-name="id" data-msg="确定要删除所选记录么?" value="删除" />
        <input type="button" class="btn" data-tdtype="batch_action" data-total="10" data-acttype="ajax" value="群发消息" data-uri="{:url('sendMsg')}" data-name="id" />
        <div id="pages">{$pages}</div>
    </div>
    </div>
</div>
{include file="public:footer" /}
<script>
$('.J_cate_select').cate_select({top_option:'请选择'});
</script>
</body>
</html>
